package org.awa.demo.opencv.gis.bean;

import lombok.Data;
import lombok.ToString;
import org.awa.demo.opencv.entity.GeoPolygonBuildEntity;
import org.locationtech.jts.geom.MultiPolygon;

import java.util.ArrayList;
import java.util.List;

/**
 * @author xxf
 */
@Data
@ToString
public class BuildingOrder {

    private String theGeom;
    private Double height;
    private Double length;
    private String geoId;
    private Integer buildId;
    private String name;
    private MultiPolygon multiPolygon;

    private List<RoadOrder> roadList = new ArrayList<>();
    private Element[][] elements;

    public BuildingOrder(GeoPolygonBuildEntity build){
        this.theGeom = build.getGeom();
        this.height = build.getHeight();
        this.geoId = build.getGeoId();
        this.buildId= build.getId();
        this.name = build.getName();
    }

    public void addRoad(RoadOrder roadOrder){
        roadList.add(roadOrder);
    }



}
